<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:p="http://java.sun.com/jsf/portlet/components" version="2.0">
	<f:view>
		<p:portletPage>
			<a4j:outputPanel layout="block" styleClass="mediadoresWrapper">
				<a4j:outputPanel layout="block" styleClass="headerWrapper">
					<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="topMenuWrapper">
					<h:form>
						<a4j:outputPanel>
							<a4j:commandLink value="Volver" action="back" immediate="true" styleClass="topMenuLink" />
						</a4j:outputPanel>
					</h:form>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="contentWrapper">
					<h:form id="marketingPromotionDetailForm">
						<a4j:outputPanel layout="block" styleClass="titleWrapper">
							<h:outputText value="Consolidación de póliza" />
						</a4j:outputPanel>
						<a4j:outputPanel layout="block" styleClass="validatonMessagesWrapper">
							<rich:messages />
						</a4j:outputPanel>
						<rich:simpleTogglePanel label="Resumen" opened="false" switchType="client">
							<table width="100%">
								<a4j:repeat value="#{InsurancePolicyDetailManagement.currentInsurancePolicy.insurancePolicyDetails}" var="item">
									<tr>
										<td width="150"><a4j:outputPanel style="font-weight:bold;padding:5px;width:150px;">
											<h:outputText value="#{item.label}" />
										</a4j:outputPanel></td>
										<td><a4j:outputPanel style="padding:5px;">
											<h:outputText value="#{item.value}" />
										</a4j:outputPanel></td>
									</tr>
								</a4j:repeat>
							</table>
						</rich:simpleTogglePanel>
						<rich:spacer height="10" />
						<rich:panel>
							<dl class="formList">
								<dt><h:outputText value="Nº de referencia PURIVEL:" /></dt>
								<dd><h:inputText id="Nombre" value="#{InsurancePolicyDetailManagement.currentInsurancePolicy.externalID}" styleClass="largeTextField" required="true" requiredMessage="El número de referencia de PURIVEL es obligatorio." /></dd>
							</dl>
							<a4j:outputPanel layout="block" styleClass="richPanelButtons">
								<a4j:commandButton action="#{InsurancePolicyDetailManagement.consolidate}" value="Guardar" styleClass="richButton" />
							</a4j:outputPanel>
							<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
						</rich:panel>
					</h:form>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="footerWrapper">
					<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
				</a4j:outputPanel>
			</a4j:outputPanel>
		</p:portletPage>
	</f:view>
</jsp:root>